package com.hopes.bizz.close.statistic.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author yumr
 * @ProjectName bizz
 * @Description 报警统计分词
 * @time 2024/2/11 22:19
 */
@Data
public class AlarmChartVO implements Serializable {

    private static final long serialVersionUID = 1432038868923718397L;
    /**
     * 下标
     */
    private String index;

    /**
     * 类型数量集合
     */
    private List<TypeNumVO> typeNumList;


    public AlarmChartVO(String index, List<TypeNumVO> typeNumList) {
        this.typeNumList = typeNumList;
        this.index = index.length() == 13 ? index + ":00" : index;
    }


}
